<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import { expressCompanyApi } from '@/feature/sys/infra/api/expressCompanyApi'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: expressCompanyApi,
        columns: [
          {
            label: '标题',
            searchable: true,
            width: 'auto',
            required: true,
            prop: 'title'
          },
          {
            label: '快递100编号',
            prop: 'express100No'
          },
          {
            label: '排序',
            prop: 'sort',
            type: ColumnType.NUMBER
          },
          {
            label: '是否启用:status(["否","是"])',
            prop: 'isOpened',
            type: ColumnType.NUMBER
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

